﻿using SDDP;
using System;
using System.Collections.Generic;
using System.Text;

namespace DotNetStar.TheKing.Domain
{
    /// <summary>
    /// 积分转移
    /// </summary>
    /// <seealso cref="SDDP.Event" />
    public class TradingPointTrasitionEvent:Event
    {
        /// <summary>
        /// 将积分从A转移给B。
        /// </summary>
        /// <param name="fromUserId">出资方，0 表示系统</param>
        /// <param name="toUserId">接收方，0 表示系统</param>
        /// <param name="title">积分流转名称。</param>
        /// <param name="transitionPoints">要流转的积分数</param>
        public TradingPointTrasitionEvent(long fromUserId, long toUserId,int transitionPoints,string title)
        {
            this.FromUserId = fromUserId;
            this.ToUserId = toUserId;
            this.Title = title;
            this.TransitionPoints = transitionPoints;
        }
        /// <summary>
        /// 获取出资方，0表示系统。
        /// </summary>
        public long FromUserId { get;  }
        /// <summary>
        /// 获取接收方，0表示系统
        /// </summary>
        public long ToUserId { get; }

        public int TransitionPoints { get;  }

        public string Title { get;  }
    }
}
